package net.zbus.rpc;

import java.util.HashMap;
import java.util.Map;

import net.zbus.ClientPool;
import net.zbus.ClientPoolConfig;

public class CRpc {

	public static void main(String[] args){
		ClientPoolConfig config = new ClientPoolConfig();
		config.setHost("127.0.0.1");
		config.setPort(15555);

		ClientPool pool = new ClientPool(config);

		Rpc rpc = new Rpc(pool, "MyRpc"); 
		
		Map<String,Object> user = new HashMap<String, Object>();
		user.put("param1", "1");
		user.put("param2", 1134);
		
		Object res = rpc.invoke("ABC", "xx", "yy");
		System.out.println(res);
		
		pool.destroy();
	}
}
